//
//  ESToolbar.h
//  测试视频
//
//  Created by lanou3g on 15/6/30.
//  Copyright (c) 2015年 不成熟. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ESToolbar;
typedef enum
{
    ESToolbarBtnTypeDing = 10,//定
    ESToolbarBtnTypeCai,//踩
    ESToolbarBtnTypeShare,//分享
    ESToolbarBtnTypeComment//评论
    
}ESToolbarBtnType;


@protocol ESToolbarDelegate <NSObject>
@optional
- (void)ESToolbar:(ESToolbar *)toolbar didSelectBtn:(UIButton *)btn;
@end

@interface ESToolbar : UIView
@property (nonatomic,weak) id <ESToolbarDelegate> delegate;
@property (nonatomic, weak) UITableViewCell *parentCell;
+ (instancetype)toolbar;
+ (instancetype)cellButtomView; //段子里用到的便利构造器
@end
